package com.karolak.service.spring.interceptor;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

import com.karolak.service.exception.ServiceException;


//TODO implement for spring service 
public class ServiceExceptionAdvice implements ThrowsAdvice {

//	public void afterThrowing(Method method, Object[] args, Object target, ServiceException exception) {
//		System.out.println("After trhowing **************************************" + method + ", " + target);
//	}
	
	public void afterThrowing(ServiceException exception) {
		System.out.println("After trhowing **************************************" + exception);
	}	

}
